import sqlite3


def create_db():
    db_con = sqlite3.connect("./db/wx_data.db")

    cur = db_con.execute("""CREATE TABLE `user` (
        uid INTEGER PRIMARY KEY AUTOINCREMENT,
        nickname TEXT,
        token TEXT,
        openid TEXT,
        last_update_time INTEGER,
        exp INTEGER,
        checked_day INTEGER,
        last_check_time INTEGER
        )""")
    db_con.commit()
    cur.close()
    db_con.close()
